public class Manager2 extends Employee2 {
    private int bonus;

    public Manager2(String name, int workday, double persal, double param) {
        super(name, workday, persal, param);
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }
    @Override
    public void printSal(){
        System.out.println(getName()+"的工资是："+(bonus+getWorkday()*getPersal()*getParam()));
    }

}
